{// 引入标签库 }
<tagLib name="html" />
<include file="Public:header" />
<load href='__TMPL__Common/js/ctmenu.js' />
<script type="text/javascript">
	var supplier_location_id = "{$vo.supplier_location_id}";
	$(document).ready(function(){
		$("input[name='supplier_key_btn']").bind("click",function(){
			search_youhui_supplier();
		});	
	});	
</script>
<div class="main">
<div class="main_title">{%EDIT} <a href="{:u("SupplierLocationMenu/index")}" class="back_list">{%BACK_LIST}</a></div>
<div class="blank5"></div>
<form name="edit" action="__APP__" method="post" enctype="multipart/form-data">
<table class="form" cellpadding=0 cellspacing=0>
	<tr>
		<td colspan=2 class="topTd"></td>
	</tr>
	<tr>
		<td class="item_title">菜单名:</td>
		<td class="item_input"><input type="text" class="textbox require" name="name" value="{$vo.name}" /></td>
	</tr>
	<tr>
		<td class="item_title">{%SUPPLIER_NAME}:</td>
		<td class="item_input">
			<span id="supplier_list">
			<select name="supplier_location_id">
				<option value="0">{%EMPTY_SELECT_SUPPLIER}</option>
				<if condition="$supplier_info">
					<option value="{$supplier_info.id}" selected="selected">{$supplier_info.name}</option>
				</if>
			</select>
			</span>
			<input type="text" class="textbox" name="supplier_key" /> 
			<input type="button" name="supplier_key_btn" class="button" value="{%SEARCH}" />
			<input type="hidden" name="address" value="{$vo.address}" />
		</td>
	</tr>
	<tr>
		<td class="item_title">分类:</td>
		<td class="item_input">
		<select name="cate_id">
			<option value="0">=={%NO_SELECT_CATE}==</option>
			<foreach name="cate_list" item="cate_item">
				<option value="{$cate_item.id}" <if condition="$vo['cate_id'] eq $cate_item['id']">selected="selected"</if>>{$cate_item.name}</option>
			</foreach>
		</select>
		</td>
	</tr>
	<tr>
		<td class="item_title">图片:</td>
		<td class="item_input"><html:imgUpload name = 'preview' id='preview' value='$vo.preview' /></td>
	</tr>
	
	<tr>
		<td class="item_title">特色菜:</td>
		<td class="item_input">
			<select name="is_special">
				<option value="0" <if condition="$vo['is_special'] eq 0">selected="selected"</if>>{%NO}</option>
				<option value="1" <if condition="$vo['is_special'] eq 1">selected="selected"</if>>{%YES}</option>
			</select>
		</td>
	</tr>
	
	<tr>
		<td class="item_title">价格:</td>
		<td class="item_input">
			<input type="text" class="textbox" name="price" value="{$vo.price}" />
		</td>
	</tr>
	<tr>
		<td class="item_title">关注:</td>
		<td class="item_input">
			<input type="text" class="textbox" name="collect_nums" value="{$vo.collect_nums}" />
		</td>
	</tr>
	<tr>
		<td class="item_title">简介:</td>
		<td class="item_input">
			 <html:editor id="editor" name="brief" type="textarea" content="{$vo.brief}" />
		</td>
	</tr>
	
	<tr>
		<td class="item_title"></td>
		<td class="item_input">
			<!--隐藏元素-->
			<input type="hidden" name="id" value="{$vo.id}" />
			<input type="hidden" name="{:conf("VAR_MODULE")}" value="SupplierLocationMenu" />
			<input type="hidden" name="{:conf("VAR_ACTION")}" value="update" />
			<!--隐藏元素-->
			<input type="submit" class="button" value="{%EDIT}" />
			<input type="reset" class="button" value="{%RESET}" />
		</td>
	</tr>
	<tr>
		<td colspan=2 class="bottomTd"></td>
	</tr>
</table>	 
</form>
</div>
<include file="Public:footer" />